package com.beiding.hotcode.starter;

import com.beiding.hotcode.v2.HotCodeConfig;
import com.beiding.hotcode.v2.MyFactory;

public class Starter {

    private Integer v;
    private static Integer vs;

    public static void main(String[] args) throws InterruptedException {

        MyFactory myFactory = new MyFactory(new HotCodeConfig().srcRoot("C:\\Users\\dinglei\\Desktop\\hotcodev2\\603\\hotecode-v2\\src\\main\\java"));

        Starter starter = new Starter();

        Starter.vs = 5;

        starter.v = 5;

        Starter wrap = myFactory.wrap(starter);

        while (true) {

            Thread.sleep(1000);

            try {
                wrap.test();
            } catch (Exception e) {
                e.printStackTrace();
            }
        }

    }

    public void test() {
        System.out.println(vs);
    }

}

